package com.zr.kufangkuwei.pojo;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2019/7/16.
 * 库区表
 */
@Data
public class DepotareaAddVo {

    @NotBlank(message = "库房编码不能为空")
    private String depotCode;//'库房编码'
    @NotBlank(message = "库房姓名不能为空")
    private String depotname;//'库房姓名'

    @NotBlank(message = "库区名称不能为空")
    private String Areaname;//'库区名称',
    @NotBlank(message = "库区编码不能为空")
    private String areacode;//'库区编码'

    @NotBlank(message = "库位名称不能为空")
    private String positionName;//'库位名称'
    @NotBlank(message = "库位编码不能为空")
    private String PositioncCode;//'库位编码'

    @NotEmpty(message = "库房不能为空")
    @Valid
    private List<Depot> depotList;
    @NotEmpty(message = "库区不能为空")
    @Valid
    private List<Depotarea> depotareaList;

}
